home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
wais
/
ui
/
question.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-05-09
|
1KB
|
55 lines
/* WIDE AREA INFORMATION SERVER SOFTWARE:
No guarantees or restrictions. See the readme file for the full standard
disclaimer.
This is part of the shell user-interface for the WAIS software. Do with it
as you please.
jonathan@Think.COM
*
* $Log: question.h,v $
* Revision 1.2 92/03/12 16:24:47 jonathan
* Renamed to question.h, as this file is really more like source.h.
* Updated all function declarations to use ANSI prototypes, if available.
*
*/
#ifndef _H_QUESTION
#define _H_QUESTION
#include <cdialect.h>
#ifndef MAX_MESSAGE_LEN
#define MAX_MESSAGE_LEN BUFSZ
#endif
typedef struct question{
char *type;
char name[STRINGSIZE];
char keywords[5000];
short version;
short view;
int numsources;
SourceList Sources;
int CurrentSource;
int numdocs;
DocList RelevantDocuments;
int CurrentRelDoc;
int numresdocs;
DocList ResultDocuments;
int CurrentResDoc;
char request_message[MAX_MESSAGE_LEN]; /* arbitrary message limit */
char response_message[MAX_MESSAGE_LEN]; /* arbitrary message limit */
SearchResponseAPDU *query_response;
SearchResponseAPDU *retrieval_response;
WAISSearchResponse *query_info;
Boolean modified;
} _Question, *Question;
short readRect _AP((Question question, FILE* file));
short ReadQuestion _AP((Question question, FILE* file));
void WriteQuestionfp _AP((FILE* fp, Question question));
void WriteQuestion _AP((char* filename, Question question));
#endif